/**
 * 
 */
package org.cnbi.utils.chart.json.component;





import org.cnbi.utils.chart.component.Data;

/**
 * @company 中国经邦
 * @author Administrator
 * @date: 2014年3月14日下午5:38:23
 * @version: V1.0  
 */
public class JsonData extends Data {
	
	public JsonData(){}
	
	public String getTooltext() {//t["index0"]+","+t[pro]
		if(null == label ){
			return null;
		}else{
			if(null == value){
				return null;
			}
			return this.label+","+format.format(Float.parseFloat(value));
		}
		
	}






	
	
	

	/**
	 * @param label
	 * @param value
	 * @param color
	 * @param link
	 */
	public JsonData(String label, String value, String color, String link) {
		super();
		this.label = label;
		this.value = value;
		this.color = color;
		this.link = link;
	}
	public JsonData(String label, String value) {
		this.label = label;
		this.value = value;
	}
	public JsonData(String label, String value, String color) {
		this.label = label;
		this.value = value;
		this.color = color;
	}
	public String getLabel() {
		return label;
	}

	
	public String getValue() {
		return value;
	}

	
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		
		this.color = color;
	}
	

	public void setLink(String link) {
		this.link = link;
	}
	
	

}
